package com.example.event;

import android.view.View;
import android.widget.TextView;

class myOnClickListener implements View.OnClickListener{

    private TextView txt;
    public myOnClickListener(TextView txt){
        this.txt = txt;
    }
    @Override
    public void onClick(View v) {

        txt.setText("点击了采用外部类的监听器");
    }
}